#include"threadpool.hpp"
#include"task.hpp"
#include<memory>
#include<iostream>
#include<functional>

using task_t=taskmodule::task_t;
int main()
{
    // CONVERT_FILE_LOG();
    CONVERT_CONSOLE_LOG();

    threadpoolmodule::threadpool<task_t>::GetInstance()->start();

    while(true){
        threadpoolmodule::threadpool<task_t>::GetInstance()->equeue(taskmodule::push);
        sleep(1);
    }

    threadpoolmodule::threadpool<task_t>::GetInstance()->stop();

    threadpoolmodule::threadpool<task_t>::GetInstance()->wait();

    return 0;   
}